[ToC] [Up] [Back] [Next] ... [Book Plug] The Information Commons
.................... Introduction to HTML

4.6.2 Regular Lists ( ... Netscape Extensions)

A regular list is a sequence of paragraphs, each of which may be preceded by a special mark, sequence number, or nothing at all. The syntax is
<UL>
  <LI> list element
  <LI> another list element ...
</UL>
Where the opening element defining the list type can be one of
  • UL -- A list of multi-line paragraphs, listed separately and usually marked by a bullet or similar symbol (Unordered List)
  • OL -- A list of multi-line paragraphs, listed separately and ordered numerically in some way (Ordered List)
  • MENU -- An Unordered List of smaller paragraphs, this is similar to UL but is formatted (if possible) in a more compact manner.
  • DIR -- A list of short elements, typically less than 20 characters in length. These may may be arranged in columns across the page, as opposed to one above the other. This is browser dependent.
  • Here are four examples, showing the rendering for the four different types. The text we will format is as follows:
    Hi.  The following is an example list.
    <UL>
      <LI> list element.  The quick brown fox jumped over the 
      lazy dog.  The quick brown fox jumped over the lazy dog.
      The quick brown fox jumped over the lazy dog.
      The quick brown fox jumped over the lazy dog.
      The quick brown fox jumped over the lazy dog.
      <LI> another list element ...
    </UL>
    
    The following four examples use the four possible list elements UL, OL, MENU and DIR.

    UL List

    Hi. The following is an example list.

    OL List

    Hi. The following is an example list.
    1. list element. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog.
    2. another list element ...

    MENU List

    Hi. The following is an example list.
  • list element. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog.
  • another list element ...

  • DIR List

    Hi. The following is an example list.
  • list element. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog.
  • another list element ...

  • [ToC] [Up] [Back] [Next] ... [Book Plug] .................... Introduction to HTML

    © Ian Graham 1994-1995 Page Last Updated: 4 December 1995